// Just a mock data 模拟角色管理中的角色权限（权限菜单）数据接口
const menu = [{
    id: 1,
    parent_id: 0,
    label: '工作台',
    type: 1,
    type_label: '普通菜单',
    children: [{
      id: 2,
      parent_id: 1,
      label: "电脑访问量",
      type: 2,
      type_label: '按钮',
    }]
  },
  {
    id: 3,
    parent_id: 0,
    label: "营销管理",
    type: 1,
    type_label: '普通菜单',
    children: [{
      id: 4,
      parent_id: 3,
      label: "友情链接",
      type: 1,
      type_label: '普通菜单',
      children: [{
          id: 5,
          parent_id: 4,
          label: "列表",
          type: 1,
          type_label: '普通菜单',
        },
        {
          id: 12,
          parent_id: 4,
          label: "详情",
          type: 2,
          type_label: '按钮',
        },
        {
          id: 6,
          parent_id: 4,
          label: "添加",
          type: 2,
          type_label: '按钮',
        },
        {
          id: 7,
          parent_id: 4,
          label: "编辑",
          type: 2,
          type_label: '按钮',
        },
        {
          id: 8,
          parent_id: 4,
          label: "删除",
          type: 2,
          type_label: '按钮',
        },
        {
          id: 9,
          parent_id: 4,
          label: "排序",
          type: 2,
          type_label: '按钮',
        },
        {
          id: 10,
          parent_id: 4,
          label: "排序",
          type: 2,
          type_label: '按钮',
        }

      ]
    }]
  },
  {
    id: 11,
    parent_id: 0,
    label: "外部链接",
    type: 1,
    type_label: '普通菜单',
  }
]

module.exports = {
  menu
}
